<form action="{:sysuri()}" data-table-id="FormTable" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item relative block">
            <span class="help-label"><b>商品分类名称</b>Category Name</span>
            <label class="relative block">
                <input class="layui-input layui-btn-disabled" disabled name="name" placeholder="请输入分类名称" required value='{$vo.name|default=""}'>
            </label>
            <span class="help-block"><b>必填，</b>请填写商品分类名称，建议字符不要太长，一般 4-6 个汉字</span>
        </div>
        <div class="layui-form-item label-required-prev">
            <span class="help-label"><b>绑定类目类型属性</b>Category Type</span>
            <select class='layui-select' name='type_id' lay-search lay-verify="required">
                <option value="">请选择绑定类目类型属性</option>
                {foreach $types as $type}
                {eq name='type.id' value='$vo.type_id|default=0'}
                <option selected value='{$type.id}'>{$type.type_name}</option>
                {else}
                <option value='{$type.id}'>{$type.type_name}</option>
                {/eq}
                {/foreach}
            </select>
            <span class="help-block"><b>必选，</b>请选择类目类型属性</span>
        </div>
        <div class="layui-form-item relative block">
            <span class="help-label"><b>商品分类描述</b>Category Desc</span>
            <label class="relative block">
                <textarea class="layui-textarea" name="remark" placeholder="请输入商品分类描述">{$vo.remark|default=''}</textarea>
            </label>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit' lay-submit>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close type='button' data-confirm="确定要取消编辑吗？">取消编辑</button>
    </div>
</form>